<div class="pa">
  <h2>个人中心</h2>
  <hr/>
  <div class="clearfix">
    <div class="span-5 colborder">
      <%= render 'users/sidebar' %>
    </div>
    <div class="span-p70 last">
      <h3><%= @action_title %></h3>
      <div>
        <%= form_for @info, :url => @action do |info| %>
          <% if !@dealurl.nil? %>
            <%= hidden_field_tag 'dealurl',1 %>
          <% end %>
          <p>
            <%= info.label :name,'姓名', :class => 'block' %>
            <%= info.text_field :name %>
            <span class="red">*</span>
          </p>
          <p>
            <%= info.label :gender,'性别', :class => 'block' %>
            <%= info.select :gender, {'男' => 1, '女' => 0} %>
            <span class="red">*</span>
          </p>
          <p>
            <%= info.label :phone,'电话', :class => 'block' %>
            <%= info.text_field :phone %>
            <span class="red">*</span>
          </p>
          <p>
          <table>
            <tr>
              <th>办公楼</th>
              <th>分座（号）</th>
              <th>楼层</th>
              <th>公司名称</th>
            </tr>
            <tr>
              <td><%= info.select :building_id, '<option value="0" selected="selected">请选择办公楼</option>'.html_safe+options_from_collection_for_select(@buildings, 'id', 'name') %></td>
              <td><%= info.text_field :tower, :size => '6' %></td>
              <td><%= info.text_field :floor, :size => '5' %></td>
              <td>
                <%= info.text_field :company_name, :size => '30' %>
                <span class="red">*</span>
              </td>
            </tr>
            <tr class="c666">
              <td>例：温特莱中心</td>
              <td>A座</td>
              <td>16层</td>
              <td>财新传媒</td>
            </tr>
          </table>
          </p>
          <p>
            * 我们暂时只支持列表中的这些办公楼，更多办公楼的配送服务筹备中，敬请期待。
          </p>
          <p>
            <%= info.submit %>
          </p>
        <% end %>
      </div>
    </div>
  </div>
</div>